﻿using MySqlConnector;
using System.Data;

namespace BasicModuleOrm
{
    public class DapperContext
    {
        public IConfiguration Configuration { get; set; }

        public DapperContext(IConfiguration configuration)
        {
            Configuration = configuration;
        }

        public IDbConnection CreateConnection()
        {

            return new MySqlConnection("server=192.168.60.129;port=3306;database=AspNetCore_ORMs;uid=root;pwd=123456");
        }
    }
}
